package dao;

import javabean.MiniFund;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

public interface DaoLogic {
    @Select("select * from minifund")
    public List<MiniFund> findAllDao();
    @Select("select balance from minifund order by id desc limit 1")
    public Double findBalance();
    @Insert("insert into minifund values(null,#{project},#{amount},#{date},#{balance})")
    public Integer addAmountDao(HashMap<Object, Object> objectObjectHashMap);

    @Insert("insert into minifund values(null,#{project},#{amount},#{date},#{balance})")
    public Integer consumeAmountDao(HashMap<Object, Object> objectObjectHashMap);
}
